import { defHttp as request } from '/@/utils/http/axios';

export const GetAllMangersReq= (params) => {
  return request.post({
    url: `/core/clientGrant/queryUserAdministrator`,
    data: params,
  })
};
export const GetAllAppReq= (p) => {
  return request.post({
    url: `/core/client/queryAllClient`,
    data: p
  })
};
// export const GetAllAppReq= (p) => {
//   return request.post({
//     url: `/auth/loginUser/queryClientByUser`,
//     data: p
//   })
// };
export const GetAccessableManagerReq= (p) => {
  return request.post({
    url: `/core/clientGrant/queryUserAdministratorNotExistsClient`,
    data: p,
  })
};
export const BindManagersToAppReq = (p) => {
  return request.post({
    url: `/core/clientGrant/addClientAdministrator`,
    data: p,
  })
};
export const RemoveBindManagersToAppReq = (p) => {
  return request.post({
    url: `/core/clientGrant/deleteClientAdministrator`,
    data: p,
  })
};
export const GetAccessableAppByUserId = (p) => {
  return request.post({
    url: `/core/clientGrant/queryUserAdministratorByClient`,
    data: p,
  })
};
